<template>
  <div />
</template>

<script>
import { getDepartDetail } from '@/api/departments'
export default {
  props: {
    userId: {
      type: String,
      required: true
    }

  },
  data() {
    return {
      user: {}
    }
  },
  created() {
    this.getDepartDetail(this.userId)
    console.log(this.userId)
  },
  methods: {
    async getDepartDetail(id) {
      const user = await getDepartDetail(id)
      console.log(user)
    }
  }
}
</script>

<style>

</style>
